import { normalizeContainer } from '../../../../../global/element/Func';
import { create_static_focusDisplay_mana } from '../../../../globalComps/comps/focusDisplay';
// eslint-disable-next-line no-unused-vars
import { focusDisplay_operate } from '../../../../globalComps/comps/focusDisplay/Classes/cla_focusDisplay_operate/cla_focusDisplay_operate';
import {
  quick_func_float_border_id,
  quick_func_float_icon_id,
  quick_func_float_nosingle_id,
  quick_func_float_view_container_id,
  spacename_quick_func_float,
} from '../DataDefine/sourceData';

const quick_func_float_staticNodeTag = 'quick_func_float_staticNode';

/**
 * 浮动元素 全局管理集 目标注册
 */
const focusDisplay_spacename = create_static_focusDisplay_mana(
  spacename_quick_func_float
);

class quick_func_float_staticNode {
  get [Symbol.toStringTag]() {
    return quick_func_float_staticNodeTag;
  }

  constructor(props) {
    this.props = props;

    this.quick_func_float_border_dom = normalizeContainer(
      quick_func_float_border_id
    );

    this.quick_func_icon_dom = normalizeContainer(quick_func_float_icon_id);

    this.quick_func_onSingle_dom = normalizeContainer(
      quick_func_float_nosingle_id
    );

    this.quick_func_float_view_container_dom = normalizeContainer(
      quick_func_float_view_container_id
    );

    this.focusDisplay_op = focusDisplay_spacename.create_new_focusDisplay_dom();

    this.focusDisplay_dom = this.focusDisplay_op.targetEl;

    this.focusDisplay_dom_container = this.focusDisplay_dom.firstChild;
  }

  /**
   * 快速 功能 主体
   * @type {HTMLElement}
   */
  quick_func_float_border_dom;

  /**
   * 快速 功能 图标
   * @type {HTMLElement}
   */
  quick_func_icon_dom;

  /**
   * 快速 功能 无 信号 提示
   * @type {HTMLElement}
   */
  quick_func_onSingle_dom;

  /**
   * 快速功能 容器 视窗
   * @type {HTMLElement}
   */
  quick_func_float_view_container_dom;

  /**
   * 焦点元素 操作集
   * @type {focusDisplay_operate}
   */
  focusDisplay_op;

  /**
   * 焦点元素
   * @type {HTMLDialogElement}
   */
  focusDisplay_dom;

  /**
   * 焦点元素 容器
   * @type {HTMLElement}
   */
  focusDisplay_dom_container;
}

export { quick_func_float_staticNode };
